/**
* Settings sub-header
* ============================================================================
*/

.settings .sub-header > div:first-child {
  padding-top: 20px;
}

/**
* Inbound Data Filters
* ============================================================================
*/

.filtered-stats-barchart {
  height: 100px;

  a {
    > span {
      left: 2px;
      right: 2px;

      &.ip-address {
        background: @red-light;
      }

      &.release-version {
        background: @purple-light;
      }

      &.error-message {
        background: @purple;
      }

      &.browser-extensions {
        background: @gray;
      }

      &.legacy-browsers {
        background: @gray-light;
      }

      &.localhost {
        background: @blue;
      }

      &.web-crawlers {
        background: @red;
      }

      &.invalid-csp {
        background: @blue-light;
      }

      &.cors {
        background: @orange;
      }
    }
  }
}

.legend {
  padding: 3px 0;
  position: relative;
  line-height: 10px;

  dt {
    margin: 0;
    position: absolute;
    left: 0;
    width: 8px;
    margin-right: 5px;

    span {
      &.ip-address {
        background: @red-light;
      }

      &.release-version {
        background: @purple-light;
      }

      &.error-message {
        background: @purple;
      }

      &.browser-extensions {
        background: @gray;
      }

      &.legacy-browsers {
        background: @gray-light;
      }

      &.localhost {
        background: @blue;
      }

      &.web-crawlers {
        background: @red;
      }

      &.invalid-csp {
        background: @blue-light;
      }

      &.cors {
        background: @orange;
      }
    }
  }
}

/**
* Rules
* ============================================================================
*/

.rules-list {
  h6 {
    margin-bottom: 15px;
  }
  .table {
    margin: 0;
  }
}

.rules-list,
.rule-detail {
  h6 {
    font-weight: 600;

    strong {
      padding: 1px 5px;
      border-radius: 2px;
      background: @white-darker;
      margin-right: 2px;
    }
  }

  .box-content {
    padding-bottom: 20px !important;
  }

  .table {
    border: 0;
    border-radius: 3px;

    tr:nth-child(odd) td {
      background: @white-darker;
    }
  }

  .add {
    margin-bottom: 20px;
  }

  .conditions-list td,
  .actions-list td {
    padding: 10px 12px !important;
    font-size: 13px;

    a {
      color: lighten(@gray, 30);

      &:hover {
        color: @gray;
      }
    }
  }
}

/**
 * Install
 * ============================================================================
 */

.install {
  margin-top: 10px;
  margin-bottom: 20px;

  .install-content {
    padding-left: 30px;
  }
}

.getting-started {
  .install .install-content {
    padding-left: 15px;
    margin-top: -10px;
  }
}

.install-language-nav {
  background-color: @white;

  .list-group {
    font-size: 14px;
    border-radius: 3px;
    border: 1px solid @trim;
    margin-bottom: 15px;

    .list-group-item {
      color: @gray-dark;
      padding: 5px 15px;
      border: 0;
      border-top: 1px solid lighten(@trim, 5);
      border-radius: 0;
      margin: 0;
      background: none;

      &.list-group-header {
        border-top: 0;

        .pull-right {
          color: @gray;
          position: relative;
          top: 1px;
          right: -2px;

          &:hover {
            color: @gray-dark;
          }
        }
      }

      &.active {
        background: @blue;
        color: #fff;
        font-weight: 600;
        box-shadow: inset 0 0 0 1px darken(@blue, 15);
        border: 0 !important;
        margin-left: -1px;
        margin-right: -1px;
      }
    }
  }
}
